//
//  LCMessage.h
//  TinyFortune
//
//  Created by lc on 15/1/6.
//  Copyright © 2016年 lc. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger,MessageType) {
    LCMessageTypeText = 0 ,//文字
    LCMessageTypePicture = 1 ,//图片
    LCMessageTypeVoice = 2 // 语音
};

typedef NS_ENUM(NSInteger,MessageFrom) {
    LCMessageFromMe = 0 ,//自己发的
    LCMessageFromOther = 1 //别人发的
};

@interface LCMessage : NSObject

/**用户头像*/
@property (nonatomic,copy)NSString *strIcon ;
/**用户ID*/
@property (nonatomic,copy)NSString *strId;
/**用户姓名*/
@property (nonatomic,copy)NSString *strName ;
/**发送时间*/
@property (nonatomic,copy)NSString *strTime;
/**内容*/
@property (nonatomic,copy)NSString *strContent ;
/**图片*/
@property (nonatomic,strong)UIImage *picture;
/**音频*/
@property (nonatomic,strong)NSData *voice ;
/**声音长度*/
@property (nonatomic,copy)NSString *strVoiceTime ;

@property (nonatomic,assign)MessageType type;
@property (nonatomic,assign)MessageFrom from ;
/**是否显示时间文本*/
@property (nonatomic,assign)BOOL showDateLabel ;

- (void)setWithDict:(NSDictionary *)dict ;

- (void)minuteOffSetStart:(NSString *)start end:(NSString *)end;

@end
